﻿@model IEnumerable<Hrm.Services.ResourceShowDto>

<ul class="nav">
    @foreach (var item in Model)
    {
        <li>
            <a href="@item.Url"><i class="@item.GlyphiconsClass"></i> <span class="txt">@item.Name</span></a>
            @if (item.Children.Count() > 0)
            {
                <ul class="sub">
                    @foreach (var subItem in item.Children)
                    {
                        <li>
                            <a href="@subItem.Url"><span class="txt">@subItem.Name</span></a>
                        </li>
                    }
                </ul>
            }
        </li>
    }
</ul>
